package com.cn.demo4.mapper;

import com.cn.demo4.entity.NewsEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsMapper {
    List<NewsEntity> findAll(NewsEntity newsEntity);

    int getCount(NewsEntity newsEntity);

    NewsEntity findById(Integer id);

    int add(NewsEntity newsEntity);

    int update(NewsEntity newsEntity);

    int del(Integer id);

    List<NewsEntity> getNewsModelListForHome();

    List<NewsEntity> findDetailsById(Integer id);
}
